home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / smebsbp.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  4KB  |  109 lines

  1. /*
  2.  * $XConsortium: SmeBSBP.h,v 1.6 89/12/11 15:20:15 kit Exp $
  3.  *
  4.  * Copyright 1989 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  *
  23.  * Author:  Chris D. Peterson, MIT X Consortium
  24.  */
  25.  
  26. /* 
  27.  * SmeP.h - Private definitions for Sme object
  28.  * 
  29.  */
  30.  
  31. #ifndef _XawSmeBSBP_h
  32. #define _XawSmeBSBP_h
  33.  
  34. /***********************************************************************
  35.  *
  36.  * Sme Object Private Data
  37.  *
  38.  ***********************************************************************/
  39.  
  40. #include <X11/Xaw/SmeP.h>
  41. #include <X11/Xaw/SmeBSB.h>
  42.  
  43. /************************************************************
  44.  *
  45.  * New fields for the Sme Object class record.
  46.  *
  47.  ************************************************************/
  48.  
  49. typedef struct _SmeBSBClassPart {
  50.   XtPointer extension;
  51. } SmeBSBClassPart;
  52.  
  53. /* Full class record declaration */
  54. typedef struct _SmeBSBClassRec {
  55.     RectObjClassPart       rect_class;
  56.     SmeClassPart     sme_class;
  57.     SmeBSBClassPart  sme_bsb_class;
  58. } SmeBSBClassRec;
  59.  
  60. extern SmeBSBClassRec smeBSBClassRec;
  61.  
  62. /* New fields for the Sme Object record */
  63. typedef struct {
  64.     /* resources */
  65.     String label;        /* The entry label. */
  66.     int vert_space;        /* extra vert space to leave, as a percentage
  67.                    of the font height of the label. */
  68.     Pixmap left_bitmap, right_bitmap; /* bitmaps to show. */
  69.     Dimension left_margin, right_margin; /* left and right margins. */
  70.     Pixel foreground;        /* foreground color. */
  71.     XFontStruct * font;        /* The font to show label in. */
  72.     XtJustify justify;        /* Justification for the label. */
  73.  
  74. /* private resources. */
  75.  
  76.     Boolean set_values_area_cleared; /* Remember if we need to unhighlight. */
  77.     GC norm_gc;            /* noral color gc. */
  78.     GC rev_gc;            /* reverse color gc. */
  79.     GC norm_gray_gc;        /* Normal color (grayed out) gc. */
  80.     GC invert_gc;        /* gc for flipping colors. */
  81.  
  82.     Dimension left_bitmap_width; /* size of each bitmap. */
  83.     Dimension left_bitmap_height;
  84.     Dimension right_bitmap_width;
  85.     Dimension right_bitmap_height;
  86.  
  87. } SmeBSBPart;
  88.  
  89. /****************************************************************
  90.  *
  91.  * Full instance record declaration
  92.  *
  93.  ****************************************************************/
  94.  
  95. typedef struct _SmeBSBRec {
  96.   ObjectPart         object;
  97.   RectObjPart        rectangle;
  98.   SmePart         sme;
  99.   SmeBSBPart   sme_bsb;
  100. } SmeBSBRec;
  101.  
  102. /************************************************************
  103.  *
  104.  * Private declarations.
  105.  *
  106.  ************************************************************/
  107.  
  108. #endif /* _XawSmeBSBP_h */
  109.